import Vue from 'vue'
import VueRouter from 'vue-router'
// import Cookies from 'js-cookie'


Vue.use(VueRouter)

const routes = [
  {
    path: '/login',
    name: 'Login',
    component: () => import('../views/Login')
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import('../views/Home')
  },
  {
    path: '/article',
    name: 'Article',
    component: () => import('../views/Article')
  },
  {
    path: '/source',
    name: 'Source',
    component: () => import('../views/Source')
  },
  {
    path: '/production',
    name: 'Production',
    component: () => import('../views/Production')
  },
  {
    path: '/',
    redirect: '/home'
  }
]
const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
